package control;

import utility.DefaultSerializer;
import utility.Serializer;
import crawler.NewsCrawler;

/**
 * The GatherProquestNews class contains the executive code for
 * performing a parse of the Proquest news database
 * @author Kevin Dolan
 */
public class GatherProquestNews {
	
	public static void main(String[] args) {
		
		String[] tickers = {"SNE"};
		String[] searchTerms = {"Sony"};
		
		Serializer serializer = new DefaultSerializer();
		
		for(int i = 0; i < tickers.length; i++) {
			System.out.println("Processing " + tickers[i]);
			NewsCrawler.crawlStock(1, 2010, 2000, tickers[i], searchTerms[i], "ProquestNews", serializer);
		}
		
	}
	
}
